import java.util.Scanner;

public class DecimalToHexadecimal {

	public static void main(String[] args) {
		
		Scanner inputConsoleStream = new Scanner(System.in);
		
		int userInput = inputConsoleStream.nextInt();
		
		inputConsoleStream.close();
		
		System.out.println(Integer.toHexString(userInput).toUpperCase());
	}
	
}